#pragma once

#include <map>

#include <fstream>
#include <string>
#include <iostream>
using namespace std;

#include "CameraSetting.h"
#include "CameraInfo.h"

namespace movesense {

class ConfigFile
{
public:
	ConfigFile(vector<CameraInfo> scanList);

	vector<CameraInfo> cameraList;

	CameraSetting cameraSetting;

	bool GetCameraInfo(string idFile);
	
	bool GetCameraSetting(CameraInfo *info);
	

private:

	string ReadJsonFile(string filename);

	vector<CameraInfo> jsonList;

    map<string, int> name2mode;

};

}
